package br.com.oversea.tutorial.cliente;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "cliente")
public class Cliente {
	// annotation used for represent a enity class @Entity
	// @Table its used for specify the name of the table on the database
	// the annotation must come from the javax.persistence package

	// constructor
	public Cliente() {

	}

	@Id
	// identificator
	@GeneratedValue
	private Integer idCliente;

	private String cpf;

	private String endereco;

	private String nome;

	private String email;

	@Column(name = "data_cadastro")
	// specify a diferent name for a collumn on the database
	private Date dataCadastro;

	private float renda;

	// begin of getters and setters
	public Integer getIdCliente() {
		return idCliente;
	}

	public String getCpf() {
		return cpf;
	}

	public String getEndereco() {
		return endereco;
	}

	public String getNome() {
		return nome;
	}

	public String getEmail() {
		return email;
	}

	public Date getDataCadastro() {
		return dataCadastro;
	}

	public float getRenda() {
		return renda;
	}

	public void setIdCliente(Integer idCliente) {
		this.idCliente = idCliente;
	}

	public void setCpf(String cpf) {
		this.cpf = cpf;
	}

	public void setEndereco(String endereco) {
		this.endereco = endereco;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setDataCadastro(Date dataCadastro) {
		this.dataCadastro = dataCadastro;
	}

	public void setRenda(float renda) {
		this.renda = renda;
	}

	// end of getters and setters

}
